package com.ph.irp.base.voucher.dao;

import java.util.List;

import com.ph.irp.model.PBaseVoucher;

public interface PBaseVoucherDAO {
	/*
	 * 查询凭证字记录
	 */
	public List<PBaseVoucher> getAllVoucherList() throws Throwable;
	
	/*
	 * 按照凭证字ID查询
	 */
	public PBaseVoucher getVoucherByID(Integer voucherId) throws Throwable;
	
	/*
	 * 按照凭证字名称查询
	 */
	public List<PBaseVoucher> getVoucherByName(String voucherName) throws Throwable;
	
	/*
	 * 新增凭证字记录定义
	 */
	public void addVoucher(PBaseVoucher voucherModel) throws Throwable;
	
	/*
	 * 修改选中记录
	 */
	public void updateVoucher(PBaseVoucher voucherModel) throws Throwable;
	
	/*
	 * 删除选中记录
	 */
	public int deleteVoucher(Integer voucherId) throws Throwable;
}
